package com.example.fragmentos;

import android.app.Fragment;
import android.graphics.Color;
import android.os.Bundle;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;


public class Fragmento3 extends Fragment {

	@Override
	public View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){
		
		
		TextView tv1 = new TextView(getActivity());
		tv1.setText("hola");
		
		int padding = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
                4, getActivity().getResources().getDisplayMetrics());
        tv1.setPadding(padding, padding, padding, padding);
        tv1.setText("hola");
        tv1.setTextColor(Color.YELLOW);
        
        
        
        
		return inflater.inflate(R.layout.activity_fragmento3, container, false);
		
	}

}
